package com.bauer.springboot.consumerfeign.service;

import com.bauer.springboot.consumerfeign.service.imple.HelloServiceHystric;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "service-hi",fallback = HelloServiceHystric.class)
public interface HelloService {

    @RequestMapping("/hi")
    String sayHi(@RequestParam(value = "name") String name);
}
